package com.dlu.safe_construction.mapper;

import com.dlu.safe_construction.model.Car;

import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * Created by  lijiaxing on 2022/3/31 13:23
 *
 * @author lijiaxing
 */
public interface CarMapper {
    int deleteByPrimaryKey(String carId);

    int deleteByOwnerId(String ownerId);

    int insert(Car record);

    int insertSelective(Car record);

    Car selectByPrimaryKey(String carId);

    List<Car> selectAll();

    List<Car> selectByCarId(String carId);

    Car selectByCarIdOne(String carId);

    List<Car> selectByOwnerId(String ownerId);

    List<Car> selectByOwnerIds(List<String> ownerIds);

    List<Car> selectByCarStatus(@Param("carStatus") Integer carStatus);

    int updateByPrimaryKeySelective(Car record);

    int updateByPrimaryKey(Car record);

    int updateBatch(List<Car> list);

    int updateBatchSelective(List<Car> list);

    int batchInsert(@Param("list") List<Car> list);
}